//
//  UIFont+Add.swift
//  PublicPod
//
//  Created by 许俊华 on 2021/9/6.
//

import Foundation

public extension UIFont {
    /**
     family:PingFang SC
         font:PingFangSC-Medium
         font:PingFangSC-Semibold
         font:PingFangSC-Light
         font:PingFangSC-Ultralight
         font:PingFangSC-Regular
         font:PingFangSC-Thin
     */
    
    // MARK:系统字体
    class func fontOfRegular(fontSize:CGFloat) -> UIFont {
        return UIFont.systemFont(ofSize: fontSize)
    }
    
    class func fontOfMedium(fontSize:CGFloat) -> UIFont {
        return UIFont.init(name: "PingFangSC-Medium", size: fontSize)!
    }
    
    class func fontOfBold(fontSize:CGFloat) -> UIFont {
        return UIFont.boldSystemFont(ofSize: fontSize)
    }
    
    class func fontOfSemibold(fontSize:CGFloat) -> UIFont {
        return UIFont.init(name: "PingFangSC-Semibold", size: fontSize)!
    }
}

